package com.roshan.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "MFA_CREDENTIAL")
public class MfaCredential extends BaseDomain<Long> {

    private static final long serialVersionUID = 100L;

    @OneToOne
    @JoinColumn(name = "MFA_QUESTION_ID")
    private MfaQuestion mfaQuestion;

    @OneToOne
    @JoinColumn(name = "USER_ID")
    private User user;

    @Column(name = "ANSWER")
    private String answer;

    public MfaQuestion getMfaQuestion() {
        return this.mfaQuestion;
    }

    public void setMfaQuestion(MfaQuestion mfaQuestion) {
        this.mfaQuestion = mfaQuestion;
    }

    public String getAnswer() {
        return this.answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}
